import { prohibited } from './lib/prohibited';
import { addProhibited } from './lib/addProhibited';
import { delProhibited } from './lib/delProhibited';

// /plugins/违禁词/resources/prohibited/自定义.txt文件一行一条规则

// 违禁词库：https://github.com/fwwdn/sensitive-stop-words  可直接将txt文件放到/plugins/违禁词/resources/prohibited/

const rule = {
  prohibited: {
    reg: 'noCheck', //匹配消息正则，命令正则
    priority: 500, //优先级，越小优先度越高
    describe: '违禁词' //【命令】功能说明
  },
  addProhibited: {
    reg: '^/违禁词添加(.*)$', //匹配消息正则，命令正则
    priority: 50, //优先级，越小优先度越高
    describe: '违禁词添加' //【命令】功能说明
  },
  delProhibited: {
    reg: '^/违禁词删除(.*)$', //匹配消息正则，命令正则
    priority: 50, //优先级，越小优先度越高
    describe: '违禁词删除' //【命令】功能说明
  }
};

export = { prohibited, rule, addProhibited, delProhibited };
